<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>扩展运算符</title>
</head>
<body>
    <script>
        // 『...』 扩展运算符能将数组转换为逗号分隔的参数序
        // 声明一个数组 ...
        const tfboys = ['s','s'];// =>'s','a'
        
        //声明一个函数
        function chunwan(){
            console.log(arguments);
        }

        // chunwan(tfboys);
        chunwan(...tfboys);
        chunwan('s','a');

    </script>
    
</body>
</html>